<html>
    <body>
        <form method="post" action="">
            {% csrf_token %}
            <table>
                {{ form.as_table }}
            </table>
            <a class="add-another" id="add_id_users" href="/admin/auth/user/add/?_popup=1">
                add user
            </a>
            <input type="submit" value="Aceptar" />
        </form>

        <script src="/static/js/jquery-1.7.2.min.js" type="text/javascript"></script>
        {% include 'autocomplete_light/static.html' %}
        <script type="text/javascript">
        if (typeof foo === 'undefined') {
            console.log('has foo')
        } else {
            console.log('no foo')

            function foo() {
                console.log('hi')
            }
        }
        foo()
        </script>
    </body>
</html>
